package day04;

public class test13 {
    public static void main(String[] args) {
        //输出1900到2024年之间所有的闰年(每够10个年份，换一行)
        int j = 0;
        for (int i = 1900; i <= 2024; i++){
            if((i % 4 == 0 && i % 100 != 0) || i % 400 == 0){
                System.out.print(i + " ");
                j++;
            }
            if(j == 10){
                System.out.println();
                j = 0;
            }
        }
    }
}
